import request from '@/utils/request'

// 查询培养方案列表
export function listEduScheme(query) {
  return request({
    url: '/education/eduScheme/list',
    method: 'get',
    params: query
  })
}

// 查询培养方案详细
export function getEduScheme(id) {
  return request({
    url: '/education/eduScheme/' + id,
    method: 'get'
  })
}

// 新增培养方案
export function addEduScheme(data) {
  return request({
    url: '/education/eduScheme',
    method: 'post',
    data: data
  })
}

// 修改培养方案
export function updateEduScheme(data) {
  return request({
    url: '/education/eduScheme',
    method: 'put',
    data: data
  })
}

// 删除培养方案
export function delEduScheme(id) {
  return request({
    url: '/education/eduScheme/' + id,
    method: 'delete'
  })
}

// 导出培养方案
export function exportEduScheme(query) {
  return request({
    url: '/education/eduScheme/export',
    method: 'get',
    params: query
  })
}